package com.crmapi.mapper;

import com.crmapi.pojo.Attachment;
import com.crmapi.pojo.Contract;
import com.crmapi.pojo.Plan;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>Project: CRMSystem - ContractMapper</p>
 * <p>Powered by yzc On 2023-11-28 15:06:10</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface ContractMapper {
    //保存合同
    int save(Contract contract);

    //批量保存附件
    int saveAttachment(List<Attachment> attachmentList);
    //批量保存回款计划
    int savePlan(List<Plan> planList);
    //条件分页查询合同
    List<Contract> queryContract(String code,String name,String customerName,Integer status,String contractTime, Integer type,String userCode);


    //批量删除
    int del(List<String> ids);


}
